//
//  CSLanguageTool.swift
//  Cycling
//
//  Created by CSS on 5/29/23.
//

import Foundation

public func YQLocalizedString(_ key: String, comment: String?) -> String {
    Bundle(path: Bundle.main.path(forResource: (UserDefaults.standard.object(forKey: "appLanguage") as! String), ofType: "lproj")!)?.localizedString(forKey: key, value: key, table: "Localizable") ?? key
}
